package com.gzist.elderlyserviceplatform.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.ServiceReservationQueryDTO;
import com.gzist.elderlyserviceplatform.entity.po.ServiceReservation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzist.elderlyserviceplatform.entity.vo.HomePageInfoCountVO;
import com.gzist.elderlyserviceplatform.entity.vo.ServiceReservationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 服务预约表 Mapper 接口
 */
public interface ServiceReservationMapper extends BaseMapper<ServiceReservation> {

    Page<ServiceReservationVO> queryPage(@Param("page") Page<ServiceReservationVO> page, @Param("queryDTO") ServiceReservationQueryDTO queryDTO);

    List<HomePageInfoCountVO> countServiceReservation();
}
